package com.qianniu.napi.admin.service;

import com.qianniu.napi.admin.entity.Jifen;
import com.baomidou.mybatisplus.service.IService;
import com.qianniu.napi.admin.entity.penum.IotypeEnum;
import com.qianniu.napi.admin.entity.penum.JftypeEnum;
import com.qianniu.napi.admin.entity.penum.XftypeEnum;

import java.math.BigDecimal;

/**
 * <p>
 * 积分表 服务类
 * </p>
 *
 * @author chenxuebin
 * @since 2018-09-04
 */
public interface IJifenService extends IService<Jifen> {

    public Jifen initJifen();

    public Jifen initJifen(Long uid, Long mid, Long mpid);

    public void addJifenFlow(Long uid, Long mid, Long mpid,BigDecimal num,
                             Boolean isconfirm, Integer fantimeType,
                             String sn, IotypeEnum iotype, JftypeEnum jftype, String remark,Long ywid);

    public void addJifenFlow(Long uid, Long mid, Long mpid,BigDecimal num,
                             Boolean isconfirm, BigDecimal money,
                             String sn, IotypeEnum iotype, JftypeEnum jftype, String remark,Long ywid);

    public void addJifenFlowOffline(Long uid, Long mid, Long mpid, BigDecimal num,
                                    Boolean isconfirm, BigDecimal money,
                                    String sn, IotypeEnum iotype, JftypeEnum xftype, String remark,Long ywid,Boolean offline);

    public Boolean jifenFlowConfirm(String sn,Long uid);
}
